package grun

func RandomFuncName() string {
	return GenRandomId()
}

type NodeFunc struct {
	Name string
	Func func(paramInterface interface{}, logMine *LogMine) (bool, error)
}

func NewNodeFunc(funcThis func(paramInterface interface{}, logMine *LogMine) (bool, error)) *NodeFunc {
	return &NodeFunc{Name: RandomFuncName(), Func: funcThis}
}
